-- GENERATED SPELL FOR [Mature Netherwing Drake] --


function spell0_21648(pUnit, Event) --@Has Eaten Recently,Self--
pUnit:FullCastSpellOnTarget(38502,pUnit)
pUnit:RegisterEvent('Sorts_21648', 576, 1)
end

function spell1_21648(pUnit, Event) --@Intangible Presence,n/a--
pUnit:FullCastSpellOnTarget(36513,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21648', 8251, 1)
end

function spell2_21648(pUnit, Event) --@Netherbreath,n/a--
pUnit:FullCastSpellOnTarget(38467,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21648', 5500, 1)
end

function Sorts_21648(pUnit, Event)
local choix_sorts_21648 = math.random(0, 2)
if choix_sorts_21648 == 0 then
pUnit:RegisterEvent('spell0_21648', 1, 1)
end
if choix_sorts_21648 == 1 then
pUnit:RegisterEvent('spell1_21648', 1, 1)
end
if choix_sorts_21648 == 2 then
pUnit:RegisterEvent('spell2_21648', 1, 1)
end
end

function mob21648_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21648', math.random(1500, 3000), 1)
end

function mob21648_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21648_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21648_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21648, 1, 'mob21648_Action')
RegisterUnitEvent(21648, 2, 'mob21648_Leave')
RegisterUnitEvent(21648, 3, 'mob21648_Kill')
RegisterUnitEvent(21648, 4, 'mob21648_Die')
